import createAxios from '/@/utils/axios'

// 合并订单
export const controllerUrl = '/system/category.IndustryOld/'

export function indexApi(data: anyObj){
    return createAxios({
        url: controllerUrl + 'index',
        method: 'post',
        data
    },{
        showSuccessMessage: false
    })
}

export function updateApi(data: anyObj){
    return createAxios({
        url: controllerUrl + 'edit',
        method: 'post',
        data
    },{
        showSuccessMessage: true
    })
}

export function delApi(params: anyObj = {}) {
    return createAxios({
        url: controllerUrl + 'del',
        method: 'DELETE',
        params: params,
    })
}
